package com.project.bean;
//订单明细实体类
public class DetailBean {
    private Integer id;
    private Integer productId;
    private Integer num;
    private Integer orderId;

    public DetailBean() {
    }

    public DetailBean(Integer productId, Integer num ) {
        this.productId = productId;
        this.num = num;
    }

    public DetailBean(Integer id, Integer productId, Integer num, Integer orderId) {
        this.id = id;
        this.productId = productId;
        this.num = num;
        this.orderId = orderId;
    }

    public DetailBean(Integer productId, Integer num, Integer orderId) {
        this.productId = productId;
        this.num = num;
        this.orderId = orderId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "DetailBean{" +
                "id=" + id +
                ", productId=" + productId +
                ", num=" + num +
                ", orderId=" + orderId +
                '}';
    }
}
